package com.thb.pay.api.agent.fallback;

import com.thb.pay.api.agent.AgentAccountServiceApi;
import com.thb.pay.api.agent.vo.req.AgentAccountPageReq;
import com.thb.pay.api.agent.vo.resp.AgentAccountVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Slf4j
@Component
public class AgentAccountServiceApiFallbackFactory implements FallbackFactory<AgentAccountServiceApi> {


    @Override
    public AgentAccountServiceApi create(Throwable throwable) {
        return new AgentAccountServiceApi() {

            @Override
            public PageResult<AgentAccountVo> findPage(AgentAccountPageReq pageReq) {
                return null;
            }

            @Override
            public Map<Long, AgentAccountVo> findByIds(List<Long> agentIds) {
                return null;
            }

            @Override
            public AgentAccountVo getById(Long agentId) {
                return null;
            }

            @Override
            public void increaseAmountToAccount(Long agentId, Long amount, Integer bizType, String bizItem, String orderId) {
            }

            @Override
            public void decreaseAmountToAccount(Long agentId, Long amount, Integer bizType, String bizItem) {

            }

            @Override
            public void freezeAmountToAccount(Long agentId, Long freezeAmount) {

            }

            @Override
            public void unFreezeAmountToAccount(Long agentId, Long unfreezeAmount, String requestNo, Integer bizType) {

            }

            @Override
            public void unFreezeSettAmountToAccount(Long agentId, Long unfreezeAmount) {

            }
        };
    }
}